package com.bt.service.impl;

import com.bt.dao.ProductMapper;
import com.bt.dao.UserMapper;
import com.bt.entity.Product;
import com.bt.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductServiceImpl implements ProductService {

   @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> getProduct() {
        return productMapper.selectAll();
    }
}
